package com.atguigu.dao;

import com.atguigu.pojo.TravelItem;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author zhengkaiyuan
 * @version 1.0
 * @create 2021-06-19 15:57
 */
public interface TravelItemDao {
    void add(TravelItem travelItem);


    Page<TravelItem> findPage(@Param("queryString") String queryString);

    long findCountByTravelItemItemId(Integer id);

    void deleteById(Integer id);

    TravelItem findById(Integer id);

    void edit(TravelItem travelItem);

    List<TravelItem> findAll();

    List<TravelItem> findByCondition(@Param("queryString") String queryString);


    List<TravelItem> findTravelItemListById(Integer id);
}
